{% extends "base.html" %}

{% block title %}Cadastro{% endblock%}

{% block body_navegacao %}
<form method="post" action="{% url cadastro %}">
    {% csrf_token %}
    <h1>Dados pessoais</h1>
    {% for field in usuario_form %}
        <div>
            {{ field.label }}
            {{ field }}
        </div>
    {% endfor %}
    <h1>Endereço</h1>
    {% for field in endereco_form %}
        <div>
            {{ field.label }}
            {{ field }}
        </div>
    {% endfor %}
    <h1>Telefone</h1>
    {% for field in telefone_form %}
        <div>
            {{ field.label }}
            {{ field }}
        </div>
    {% endfor %}
    <button type="submit" title="concluir">Concluir</button>
</form>

<div>
    {{ usuario_form.errors }}
    {{ endereco_form.errors }}
    {{ telefone_form.errors }}
</div>
{% endblock %}
